package com.ynet.middleground.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 冷链信息表
 * </p>
 *
 * @author Songyf
 * @since 2020-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ur_coldchain")
public class Coldchain extends Model<Coldchain>{

	private static final long serialVersionUID = 4913184718779144060L;

	@TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 冷链客户号
     */
    private String coldchainUserCode;

    /**
     * 冷链客户名称
     */
    private String coldchainUserName;

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 创建时间
     */
    private LocalDateTime gmtCreate;

    /**
     * 创建人
     */
    private Integer createBy;

    /**
     * 修改时间
     */
    private LocalDateTime gmtModified;

    /**
     * 修改人
     */
    private Integer modifiedBy;
    
    /**
     * 渠道
     */
    private String channel;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
